<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
	<title>Exam mode</title>
	<meta title="template local_template.html">
</head>

<body>
<div id="main_title">Experimental exam - in development</div>
<div id="content">
<p>
Currently, the exam mode is limited to enabling doctests only if they fall
within the allowed time.  You will need to edit this file (and reload it),
Changing the time (and possibly duration) to a value such that the exam can take
place.
</p>
<p>Future exploration will include small live "digital clock", showing the time
remaining for an exam.</p>
<h3>Time information about the exam</h3>


<pre title="exam_define name=test_exam start=2008-10-7_14:30:00 duration=42m">
</pre>

<h3>Welcome to this doctest-based exam.</h3>

<p>Question 1 , write some code that pass the doc-test</p>
<pre title="doctest exam_name=test_exam">
>>> p = Animal('Pooh')
>>> p.name
'Pooh'
>>> p.addFriend('Piglet')
>>> p.friends
['Piglet']
</pre>

<p>Question 2 , write some code that pass the doc-test</p>
<pre title="doctest exam_name=test_exam">
>>> double(2) 
4
>>> double(-1)
-2
>>> double("aa") 
aaaa
</pre>

</div>
</body>
</html>
